package com.zjff.show.zjffshow.service;

import com.zjff.show.zjffshow.entity.UserDao;
import com.zjff.show.zjffshow.impl.UserImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired(required = false)
    UserImpl userImpl;

    // 获取用户账号状态
    public UserDao getUser(String UName){//获取用户数量
        return userImpl.getUser(UName);
    }
    public List<UserDao> getUserList(int id,String Pwd, int Start, int Page,  String UName, String Phone, String Address){//获取列表
        return userImpl.getUserList(id,Pwd,Start,Page,UName,Phone,Address);
    }
    public int getUserCount(){//获取用户数量
        return userImpl.getUserCount();
    }
    public int upUser(UserDao userDao){//更新用户
        return userImpl.upUser(userDao);
    }


}

